package com.goldgov.com.web.json;

import java.util.*;

public class ComplexRespones {
	
	/**
	 * 文本
	 */
	private String text;
	/**
	 * 文本数组
	 */
	private String textArray;
	/**
	 * 子对象
	 */
	private Object myObj;


	public void setText(String text){
		this.text = text;
	}
	
	public String getText(){
			if(text == null){
				throw new RuntimeException("text不能为null");
			}
		return text;
	}

	public void setTextArray(String textArray){
		this.textArray = textArray;
	}
	
	public String getTextArray(){
			if(textArray == null){
				throw new RuntimeException("textArray不能为null");
			}
		return textArray;
	}

	public void setMyObj(Object myObj){
		this.myObj = myObj;
	}
	
	public Object getMyObj(){
			if(myObj == null){
				throw new RuntimeException("myObj不能为null");
			}
		return myObj;
	}
}